/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcConvActionRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mIDList;
/*    */   private String mOp;
/*    */   private String mTag;
/*    */   private String mFolder;
/*    */   private String mPosition;
/*    */   private String mContent;
/*    */   
/*    */   public void setConvList(String idList)
/*    */   {
/* 42 */     this.mIDList = idList;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/* 48 */   public void setOp(String op) { this.mOp = op; }
/*    */   
/* 50 */   public void setTag(String t) { this.mTag = t; }
/* 51 */   public void setFolder(String f) { this.mFolder = f; }
/* 52 */   public void setPosition(String p) { this.mPosition = p; }
/* 53 */   public void setContent(String c) { this.mContent = c; }
/*    */   
/* 55 */   public String getConvList() { return this.mIDList; }
/* 56 */   public String getOp() { return this.mOp; }
/* 57 */   public String getTag() { return this.mTag; }
/* 58 */   public String getFolder() { return this.mFolder; }
/* 59 */   public String getContent() { return this.mContent; }
/* 60 */   public String getPosition() { return this.mPosition; }
/*    */   
/*    */   protected Element getRequestXML() {
/* 63 */     Element request = DocumentHelper.createElement(MailConstants.CONV_ACTION_REQUEST);
/* 64 */     Element a = DomUtil.add(request, "action", "");
/* 65 */     DomUtil.addAttr(a, "id", this.mIDList);
/* 66 */     DomUtil.addAttr(a, "op", this.mOp);
/* 67 */     DomUtil.addAttr(a, "tag", this.mTag);
/* 68 */     DomUtil.addAttr(a, "l", this.mFolder);
/* 69 */     if (this.mContent != null)
/* 70 */       DomUtil.add(a, "content", this.mContent);
/* 71 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 77 */     LmcConvActionResponse response = new LmcConvActionResponse();
/* 78 */     Element a = DomUtil.get(responseXML, "action");
/* 79 */     response.setConvList(DomUtil.getAttr(a, "id"));
/* 80 */     response.setOp(DomUtil.getAttr(a, "op"));
/* 81 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcConvActionRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */